<?php

class Machine extends \Eloquent {
	protected $fillable = [];

    public function filterone(){
        return $this->belongsTo('Commodity','filter1','id');
    }
    public function filtertwo(){
        return $this->belongsTo('Commodity','filter2','id');
    }
    public function filterthree(){
        return $this->belongsTo('Commodity','filter3','id');
    }
    public function filterfour(){
        return $this->belongsTo('Commodity','filter4','id');
    }
    public function filterfive(){
        return $this->belongsTo('Commodity','filter5','id');
    }
    public function filtersix(){
        return $this->belongsTo('Commodity','filter6','id');
    }
    public function filterseven(){
        return $this->belongsTo('Commodity','filter7','id');
    }
    public function filtereight(){
        return $this->belongsTo('Commodity','filter8','id');
    }
    public function filternine(){
        return $this->belongsTo('Commodity','filter9','id');
    }
    public function filterten(){
        return $this->belongsTo('Commodity','filter10','id');
    }

}